﻿using System;
using GeoAPI.Geometries;

namespace YJKGridTopologyCal.Index.Strtree
{
	public class GeometryItemDistance : IItemDistance<Envelope, IGeometry>
	{
		public double Distance(IBoundable<Envelope, IGeometry> item1, IBoundable<Envelope, IGeometry> item2)
		{
			IGeometry item3 = item1.Item;
			IGeometry item4 = item2.Item;
			return item3.Distance(item4);
		}
	}
}
